using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
	public partial class SysRole : BusinessBase<string>
    {
        #region Declarations

        private string _roleName = String.Empty;
        private string _remark = String.Empty;



        #endregion

        #region Constructors

        public SysRole() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_roleName);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

        [DataMember]
        public virtual string RoleName
        {
            get { return _roleName.TrimEnd(); }
            set
            {
                _roleName = value;
            }
        }

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                _remark = value;
            }
        }

        #endregion
	}
}